package sim.helpers.comparers;

import java.util.Comparator;

import sim.coalitional.Coalition;

public class CoalitionValueComparer implements Comparator<Coalition> {

    Coalition basis;

    public CoalitionValueComparer(Coalition basis) {
        this.basis = basis;
    }

    @Override
    public int compare(Coalition c1, Coalition c2) {
//        if (basis.getMaximumDistanceFromCoalition(c1) > basis.getMaximumDistanceFromCoalition(c2)) {
//            return 1;
//        } else if (basis.getMaximumDistanceFromCoalition(c1) == basis.getMaximumDistanceFromCoalition(c2)) {
//            return 0;
//        }
        return -1;
    }
}
